# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vim-sleuth
pkgver=1.2
pkgrel=0
pkgdesc="vim: Heuristically set buffer options"
url="https://github.com/tpope/vim-sleuth"
arch="noarch"
license="Vim"
depends="vim"
source="$pkgname-$pkgver.tar.gz::https://github.com/tpope/vim-sleuth/archive/v$pkgver.tar.gz"

package() {
	local _vimver=$( vim --version | sed -E -n '1s/.*(\d+)\.(\d+).*/\1\2/p')
	mkdir -p "$pkgdir"/usr/share/vim/vim$_vimver
	cp -r plugin doc "$pkgdir"/usr/share/vim/vim$_vimver/
}

sha512sums="7ba960a0cebf6c7eed877f3bca5435905c27c8d486a00bbd7dc34f46c841660e9557f26f368b8efb86cd2fcd6739c230fe3737c66064436aa114c9a9235a3332  vim-sleuth-1.2.tar.gz"
